package com.homework.thread;

public class test2_2 implements Runnable{
    public int sum = 1;
    public int i;

    public test2_2(int i) {
        this.i = i;
    }
    @Override
    public void run() {
        for (int j = 1; j <= i; j++) {
            sum = sum * j;
        }
        System.out.println(sum);
    }
}
